<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/rtf/table.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('table_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">table.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="table_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;../../pugixml/pugixml.hpp&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacertf.html">rtf</a> {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classrtf_1_1_ptr_vec.html">   27</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec</a>: <span class="keyword">public</span> std::vector&lt;T*&gt; {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    ~<a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec</a>();</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;};</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec&lt;T&gt;::~PtrVec</a>() {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = this-&gt;begin(); it != this-&gt;end(); ++it)</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keyword">delete</span> *it;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;}</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell.html">   45</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_table_cell.html">TableCell</a> {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="classrtf_1_1_table_cell.html">TableCell</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell.html#a7369022b515fe2708266221b1f8f5e03">   50</a></span>&#160;    <span class="keywordtype">int</span> m_rowspan = 0;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell.html#a7cf1ea6405e63bfbf28f4d58b0fe4e19">   52</a></span>&#160;    pugi::xml_document <a class="code" href="classrtf_1_1_table_cell.html#a7cf1ea6405e63bfbf28f4d58b0fe4e19">m_node</a>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell_def.html">   61</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_table_cell_def.html">TableCellDef</a> {</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="classrtf_1_1_table_cell_def.html">TableCellDef</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">bool</span> rightEquals(<span class="keywordtype">int</span> right);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell_def.html#a6c5eaeb58415c007568646f7d5739590">   77</a></span>&#160;    <span class="keywordtype">int</span> m_right = 0;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell_def.html#a8ed8e670a2de067703b83302e340ff13">   79</a></span>&#160;    <span class="keywordtype">int</span> m_left = 0;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell_def.html#a55e545c6cc7a95417488a1ab1a09fcdd">   81</a></span>&#160;    <span class="keywordtype">bool</span> m_isMerged = <span class="keyword">false</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_cell_def.html#a0d8f006675836066c6a710e808f03645">   83</a></span>&#160;    <span class="keywordtype">bool</span> m_isFirstMerged = <span class="keyword">false</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;};</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_row.html">   92</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_table_row.html">TableRow</a> {</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <a class="code" href="classrtf_1_1_table_row.html">TableRow</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_row.html#ac9518d84f2d4b802f33b63b4e950b74c">   97</a></span>&#160;    <a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec&lt;TableCell&gt;</a> <a class="code" href="classrtf_1_1_table_row.html#ac9518d84f2d4b802f33b63b4e950b74c">m_cellList</a>;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_row.html#af8fd21a900bc5cd9fc5be87ec22e894a">   99</a></span>&#160;    std::list&lt;PtrVec&lt;TableCellDef&gt;&gt;::iterator <a class="code" href="classrtf_1_1_table_row.html#af8fd21a900bc5cd9fc5be87ec22e894a">m_cellDefList</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classrtf_1_1_table_row.html#ae9a679d4c886bc9cd1b86ce894d93828">  101</a></span>&#160;    <span class="keywordtype">int</span> m_left = 1000;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classrtf_1_1_table.html">  110</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrtf_1_1_table.html">Table</a>: <span class="keyword">public</span> <a class="code" href="classrtf_1_1_ptr_vec.html">PtrVec</a>&lt;TableRow&gt; {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <a class="code" href="classrtf_1_1_table.html">Table</a>(<span class="keywordtype">char</span> mergingMode);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordtype">void</span> make(pugi::xml_node&amp; node);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">void</span> addSubtree(<span class="keyword">const</span> pugi::xml_node&amp; from, pugi::xml_node&amp; to) <span class="keyword">const</span>;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classrtf_1_1_table.html#a7fbd15f7d67afb17edd961a3994b4443">  136</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="classrtf_1_1_table.html#a7fbd15f7d67afb17edd961a3994b4443">m_mergingMode</a>;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classrtf_1_1_table.html#ae464353ccef0b911d8c3bbf1814dad6b">  138</a></span>&#160;    pugi::xml_document <a class="code" href="classrtf_1_1_table.html#ae464353ccef0b911d8c3bbf1814dad6b">m_tree</a>;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;};</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classrtf_1_1_table_html"><div class="ttname"><a href="classrtf_1_1_table.html">rtf::Table</a></div><div class="ttdoc">Wrapper for table. </div><div class="ttdef"><b>Definition:</b> table.hpp:110</div></div>
<div class="ttc" id="classrtf_1_1_table_row_html_ac9518d84f2d4b802f33b63b4e950b74c"><div class="ttname"><a href="classrtf_1_1_table_row.html#ac9518d84f2d4b802f33b63b4e950b74c">rtf::TableRow::m_cellList</a></div><div class="ttdeci">PtrVec&lt; TableCell &gt; m_cellList</div><div class="ttdef"><b>Definition:</b> table.hpp:97</div></div>
<div class="ttc" id="classrtf_1_1_table_cell_html"><div class="ttname"><a href="classrtf_1_1_table_cell.html">rtf::TableCell</a></div><div class="ttdoc">Wrapper for table cells. </div><div class="ttdef"><b>Definition:</b> table.hpp:45</div></div>
<div class="ttc" id="classrtf_1_1_table_cell_html_a7cf1ea6405e63bfbf28f4d58b0fe4e19"><div class="ttname"><a href="classrtf_1_1_table_cell.html#a7cf1ea6405e63bfbf28f4d58b0fe4e19">rtf::TableCell::m_node</a></div><div class="ttdeci">pugi::xml_document m_node</div><div class="ttdef"><b>Definition:</b> table.hpp:52</div></div>
<div class="ttc" id="classrtf_1_1_table_html_ae464353ccef0b911d8c3bbf1814dad6b"><div class="ttname"><a href="classrtf_1_1_table.html#ae464353ccef0b911d8c3bbf1814dad6b">rtf::Table::m_tree</a></div><div class="ttdeci">pugi::xml_document m_tree</div><div class="ttdef"><b>Definition:</b> table.hpp:138</div></div>
<div class="ttc" id="classrtf_1_1_table_row_html_af8fd21a900bc5cd9fc5be87ec22e894a"><div class="ttname"><a href="classrtf_1_1_table_row.html#af8fd21a900bc5cd9fc5be87ec22e894a">rtf::TableRow::m_cellDefList</a></div><div class="ttdeci">std::list&lt; PtrVec&lt; TableCellDef &gt; &gt;::iterator m_cellDefList</div><div class="ttdef"><b>Definition:</b> table.hpp:99</div></div>
<div class="ttc" id="classrtf_1_1_table_html_a7fbd15f7d67afb17edd961a3994b4443"><div class="ttname"><a href="classrtf_1_1_table.html#a7fbd15f7d67afb17edd961a3994b4443">rtf::Table::m_mergingMode</a></div><div class="ttdeci">const char m_mergingMode</div><div class="ttdef"><b>Definition:</b> table.hpp:136</div></div>
<div class="ttc" id="classrtf_1_1_ptr_vec_html"><div class="ttname"><a href="classrtf_1_1_ptr_vec.html">rtf::PtrVec</a></div><div class="ttdoc">Pointer vector class. </div><div class="ttdef"><b>Definition:</b> table.hpp:27</div></div>
<div class="ttc" id="namespacertf_html"><div class="ttname"><a href="namespacertf.html">rtf</a></div><div class="ttdoc">RTF files into HTML сonverter. </div></div>
<div class="ttc" id="classrtf_1_1_table_row_html"><div class="ttname"><a href="classrtf_1_1_table_row.html">rtf::TableRow</a></div><div class="ttdoc">Wrapper for table row. </div><div class="ttdef"><b>Definition:</b> table.hpp:92</div></div>
<div class="ttc" id="classrtf_1_1_table_cell_def_html"><div class="ttname"><a href="classrtf_1_1_table_cell_def.html">rtf::TableCellDef</a></div><div class="ttdoc">Wrapper for table cell definitions. </div><div class="ttdef"><b>Definition:</b> table.hpp:61</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_50ea6f647dd76702afc4ee39f597a9ab.html">rtf</a></li><li class="navelem"><a class="el" href="table_8hpp.html">table.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
